.class public Lcn/sharesdk/framework/b/a/c;
.super Ljava/lang/Object;


# static fields
.field private static c:Lcn/sharesdk/framework/b/a/c;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/content/SharedPreferences;


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .registers 5

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/framework/b/a/c;->a:Landroid/content/Context;

    const-string v0, "share_sdk_0"

    iget-object v1, p0, Lcn/sharesdk/framework/b/a/c;->a:Landroid/content/Context;

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcn/sharesdk/framework/b/a/c;
    .registers 3

    sget-object v0, Lcn/sharesdk/framework/b/a/c;->c:Lcn/sharesdk/framework/b/a/c;

    if-nez v0, :cond_f

    new-instance v0, Lcn/sharesdk/framework/b/a/c;

    invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcn/sharesdk/framework/b/a/c;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcn/sharesdk/framework/b/a/c;->c:Lcn/sharesdk/framework/b/a/c;

    :cond_f
    sget-object v0, Lcn/sharesdk/framework/b/a/c;->c:Lcn/sharesdk/framework/b/a/c;

    return-object v0
.end method


# virtual methods
.method public a()J
    .registers 5

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    const-string v1, "service_time"

    const-wide/16 v2, 0x0

    invoke-interface {v0, v1, v2, v3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v0

    return-wide v0
.end method

.method public a(Ljava/lang/String;)J
    .registers 6

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    const-wide/16 v2, 0x0

    invoke-interface {v0, p1, v2, v3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v0

    return-wide v0
.end method

.method public a(Ljava/lang/String;I)V
    .registers 4

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/Long;)V
    .registers 7

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    invoke-interface {v0, p1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .registers 4

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    return-void
.end method

.method public b(Ljava/lang/String;)I
    .registers 4

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    const/4 v1, 0x0

    invoke-interface {v0, p1, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public b()Z
    .registers 4

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    const-string v1, "upload_device_info"

    const-string v2, "true"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public c(Ljava/lang/String;)V
    .registers 3

    const-string v0, "upload_device_info"

    invoke-virtual {p0, v0, p1}, Lcn/sharesdk/framework/b/a/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public c()Z
    .registers 4

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    const-string v1, "upload_user_info"

    const-string v2, "true"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public d()I
    .registers 4

    iget-object v0, p0, Lcn/sharesdk/framework/b/a/c;->b:Landroid/content/SharedPreferences;

    const-string v1, "upload_share_content"

    const-string v2, "0"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "true"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_14

    const/4 v0, 0x1

    :goto_13
    return v0

    :cond_14
    const-string v1, "false"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1e

    const/4 v0, -0x1

    goto :goto_13

    :cond_1e
    const/4 v0, 0x0

    goto :goto_13
.end method

.method public d(Ljava/lang/String;)V
    .registers 3

    const-string v0, "upload_user_info"

    invoke-virtual {p0, v0, p1}, Lcn/sharesdk/framework/b/a/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public e(Ljava/lang/String;)V
    .registers 3

    const-string v0, "upload_share_content"

    invoke-virtual {p0, v0, p1}, Lcn/sharesdk/framework/b/a/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
